//
//  WBWebViewViewController.swift
//  SinaWeibo
//
//  Created by 风不会停息 on 2016/11/29.
//  Copyright © 2016年 风不会停息. All rights reserved.
//

import UIKit

class WBWebViewViewController: UIViewController {

    let webView = UIWebView()
    var urlString:String?
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view = webView
        
       
        loadPage()
        // Do any additional setup after loading the view.
    }

    
    private func loadPage(){
        
        guard let urlStr = urlString else {
            return
        }
        
        let url = URL(string: urlStr)
        
        let req = URLRequest(url: url!)
        
        webView.loadRequest(req)
        
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
